import { Pagination } from 'antd';
import React from 'react';
import styles from './index.scss';
import { observer } from 'mobx-react';
function Page(props: {
  onChange: any;
  total: number;
  current: number;
  pageSize: number;
}) {
  const { onChange, total, current, pageSize } = props;
  return (
    <div className={styles.page}>
      <Pagination
        size="small"
        current={current}
        pageSize={pageSize}
        onChange={onChange}
        total={total}
      />
    </div>
  );
}
export default Page;
